#include "BusProcessor.h"
#include "SqlTables.h"


BusinessProcessor::BusinessProcessor(std::shared_ptr<MysqlConnection> conn)
	:mysqlconn_(conn), ueh_(new UserEventHandler())
{

}

bool BusinessProcessor::init()
{
	SqlTables table(mysqlconn_);
	table.CreateUserInfo();
	table.CreatrBikeTable();

	return true;
}

BusinessProcessor::~BusinessProcessor()
{
	ueh_.reset();
}
